import { createApp } from "vue";
import App from "./App.vue";
import stores from "@/stores";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
// 将 element-plus 设为国际化
//@ts-ignore 忽略当前文件ts类型的检测否则有红色提示(打包会失败)
// import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
// 暗黑模式样式
import "element-plus/theme-chalk/dark/css-vars.css";
import "./styles/dark/css-vars.css";
// import './styles/element/index.scss'
// 引入 svg 插件配置代码
import "virtual:svg-icons-register";

import router from "@/router";

import "@/router/permission.ts";

// 引入所有组件的集合
import AllGlobalComponent from "@/components/index.ts";

// 引入 SCSS 样式
import "@/styles/index.scss";

import "xe-utils";
import VXETable from "vxe-table";
import "vxe-table/lib/style.css";

const app = createApp(App);
app.use(router);

// 使用全局组件
app.use(AllGlobalComponent);

app.use(stores);

// 将 element-plus 设为国际化
app.use(ElementPlus);
app.use(VXETable);

app.mount("#app");
